package io.renren.modules.substation.service.impl;

import io.renren.modules.substation.entity.TTotalDayInfoEntity;
import io.renren.modules.substation.entity.TTotalDayInfoForShow;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TTotalMonthInfoDao;
import io.renren.modules.substation.entity.TTotalMonthInfoEntity;
import io.renren.modules.substation.service.TTotalMonthInfoService;


@Service("tTotalMonthInfoService")
public class TTotalMonthInfoServiceImpl extends ServiceImpl<TTotalMonthInfoDao, TTotalMonthInfoEntity> implements TTotalMonthInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TTotalMonthInfoEntity> page = this.page(
                new Query<TTotalMonthInfoEntity>().getPage(params),
                new QueryWrapper<TTotalMonthInfoEntity>()
        );

        return new PageUtils(page);
    }
    @Override
    public List<TTotalDayInfoEntity> queryTotalMonthInfoByCondition(TTotalDayInfoForShow tTotalDayInfoForShow)
    {
        return baseMapper.queryTotalMonthInfoByCondition(tTotalDayInfoForShow);
    }

}